/**
 * Created by yu on 16/8/21.
 * bufferCopy
 */
//Buffer.copy(targetBuffer,targetstart,sourcestart,sourceend);
var buf1 = new Buffer('后');
var buf2 = new Buffer('盾');
var buf3 = new Buffer('培');
var buf4 = new Buffer('训');
var buffers = new Buffer(12);
buf1.copy(buffers,0,0,3);
buf2.copy(buffers,3,0,3);
buf3.copy(buffers,6,0,3);
buf4.copy(buffers,9,0,3);
console.log(buffers,buffers.toString('utf8',0,12));